package com.mapfinal.mapcache;

import java.awt.image.BufferedImage;

import org.apache.http.HttpResponse;

import com.jfinal.core.Controller;
import com.mapfinal.server.service.tile.TileParam;

public interface MapCachePersistence {

	boolean renderFromCache(TileParam tile, Controller controller);
	
	String cacheName(TileParam tile);
	
	void inputTileToCache(TileParam tile, HttpResponse httpResponse);
	
	void inputTileToCache(TileParam tile, BufferedImage image);
	
	void inputTileToCache(TileParam tile, byte[] image);
	
	void remove(TileParam tile, Controller controller);
}
